package org.example.project.bookstore.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.bean.User;
import org.example.util.JsonResult;
import org.springframework.stereotype.Service;

/**
 * @Auther:Liu
 * @Testname:UserService
 * @Date:2025/8/18 11:11
 */
@Service
public interface UserService extends IService<User> {

    //登录方法
    JsonResult login(User user);


    //查找姓名
    JsonResult getUserName(String token );

    //退出登录
    JsonResult outLogin(String token);

    //    添加数据
    JsonResult saveUser(User user);
}
